package com.inxedu.os.edu.service.user;

import com.inxedu.os.edu.pojo.SysLoginLog;
import com.inxedu.os.edu.pojo.SysRole;
import com.inxedu.os.edu.pojo.SysUser;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AdminSysUser {
    //查询所有
    SysUser selectAll(Integer userId);
    //查询身份
    List<SysRole> selectRole();
    //模糊查询
    List<SysUser> select(SysUser sysUser);
    //日志
    List<SysLoginLog> selectByExample(Integer userId);
    //修改状态(0正常1冻结2删除)
    void updatestatus(Integer status, int type);
    //修改密码
    void updadauserpwd(int userId, String password);
    //修改
    void updatauser(SysUser sysUser);
    //新增
    int insetsysuser(SysUser sysUser);
    //根据ID删除
    void deleByID(Integer id);
}
